<template>
  <div class="xyd-carousel-container">
    <el-carousel height="150px" trigger="click" arrow="never" :interval="5000">
      <el-carousel-item v-for="item in data" :key="item">
        <img :src="item.image_url"/>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {

  name: 'smallCarousel',
  props: {
    data: {
      type: Array
    }
  },
  data() {
    return {

    };
  }
};
</script>

<style lang="scss" scoped>
.xyd-carousel-container{
  margin-bottom: 10px;
  img{
    width: 100%;
    height: 100%
  }
}
</style>